package org.bzjj.sql;

import java.util.HashMap;

public class SqlUpdate {
	private static String startUpdate = "UPDATE ";
	private static String setUpdate = " SET ";
	private static String whereUpdate = " WHERE ";

	public static String getUpdate(String table, HashMap<String, String> value,
			HashMap<String, String> where) {
		String str = startUpdate + Sql.getKey(table) + setUpdate
				+ Sql.getKeysAndValues(value) + whereUpdate
				+ Sql.getWhere(where);
		return str;
	}
}
